﻿using System;
using System.Collections.Generic;
using System.Linq;

using Sumen.Model.Model;

namespace Sumen.Business.Presenter.Category
{
    public class ProductTypePresenter 
    {
      

        public ICollection<product_type> GetAll()
        {
            using (sumenEntities objEntities = new sumenEntities())
            {
                if (ClsPublic.SYSTEM_DISPLAY_ACTIVED == "1")
                    return objEntities.product_type.ToList();
                else
                    return objEntities.product_type.Where(p => p.Prodt_Actived == 1).ToList();
            }
        }
       
    }
}
